package cn.smart.xxljobx.autoconfigure;
import cn.smart.xxljobx.config.XxlJobConfig;
import cn.smart.xxljobx.properties.XxlJobXProperty;
import com.xxl.job.core.executor.impl.XxlJobSpringExecutor;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnProperty(prefix = "cn.smart.xxljobx",name = "enable", havingValue = "true",matchIfMissing = false)
//领头羊
@Import({XxlJobConfig.class, XxlJobXProperty.class})
public class XxlJobAutoConfiguration {
}